package com.xxxx.server.controller;

import com.xxxx.server.pojo.Admin;
import com.xxxx.server.pojo.ChatMsg;
import com.xxxx.server.service.IAdminService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.List;


@Api("在线聊天")
@RestController
@RequestMapping("/chat")
public class ChatController {

	@Autowired
	private IAdminService adminService;


	@ApiOperation(value = "获取所有的用户列表")
	@GetMapping("/admin")
	public List<Admin> queryAllAdmin(){
		return adminService.queryAllAdmin();
	}



}